{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<a href="{:url('index')}">优惠券管理</a>
		</li>
		<li><strong>发放记录</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
        <div class="example-wrap">
			<div class="example">				
				<table class="table table-bordered table-hover">
					<thead>
						<tr class="long-th">    
							<th>优惠券编码</th>
                            <th>状态</th>
                            <th>发放时间</th>
                            <th>过期时间</th>
							<th>核销时间</th>
							<th>会员卡号</th>
                        </tr>
                    </thead>
                    <tbody id="list">
                    	{volist name="list" id='ad'}
                    	<tr style="text-align: center;">
                    		<td>{$ad.coupon_no}</td>
                			<td>
                    			{if $ad.status == 1}
                    			未用
                    			{else}
                    			已用
                    			{/if}
                    		</td>
                    		<td>{$ad.grant_time}</td>
							<td>{$ad.overdue_time}</td>
                    		<td>{$ad.write_time}</td>
                    		<td>{$ad.member_no}</td>
                    	</tr>
                    	{/volist}
                    </tbody>
                </table>
                <div style="text-align: right;">
                  {$list->render()}
                </div>
            </div>
       	</div>           
    </div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script>
	$(function() {
		$("#myForm").validate({
			rules: {
			},
			messages: {
			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}